<%@ page language="java" import="java.util.*,java.sql.*,com.sp.model.*" pageEncoding="UTF-8"%>


<html>

	<head>

	</head>

	<body>
		<%
			//接受用户名和密码
			String u = request.getParameter("username");
			String p = request.getParameter("passwd");
			
			//调用UserBeanC1的方法，完成对用户的验证
			
			UserBeanC1 ubc=new UserBeanC1();
			
			if(ubc.checkUser(u,p)){
				response.sendRedirect("wel.jsp");
			
			}else{
				response.sendRedirect("login.jsp");
			
			}
			
			
		%>
	</body>

</html>
